package com.github.pulltorefreshproject;

import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;

public class ListAdapter extends RecyclerView.Adapter<ListAdapter.ListHolder> {

    @NonNull
    @Override
    public ListHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {
        View inflate = LayoutInflater.from(parent.getContext()).inflate(R.layout.list_item, parent, false);
        return new ListHolder(inflate);
    }

    @Override
    public void onBindViewHolder(@NonNull ListHolder holder, int position) {

    }

    @Override
    public int getItemCount() {
        return 10;
    }

    public static class ListHolder extends RecyclerView.ViewHolder{

        public ListHolder(@NonNull View itemView) {
            super(itemView);
        }
    }
}